<?php
namespace Admin\Controller;


class TestController extends BaseController{


    function pushMsg()
    {


        // 06012f00197
        // 090c66fdfe3    dingding

        $JPush = new \Api\Libs\JPush();

        $msg = array('title'=>'你好dingding','content'=>'这是一条给dingding的推送');
        $receiver = array('registration_id'=>array('0402d31b0ab'));

        $result = $JPush->pushNotification($msg,$receiver);
        p($result);
    }
}